import { window, StatusBarItem, StatusBarAlignment, ThemeColor } from 'vscode';
import { createBrowserClient } from './browserClient';
export class BrowserStateBar {
	private statusBarItem: StatusBarItem | undefined;
	constructor() {
		this.statusBarItem = window.createStatusBarItem(StatusBarAlignment.Right, 200);
		this.statusBarItem.text = '✪♔Browser';
		this.statusBarItem.color = 'yellow';

		this.statusBarItem.name = 'browserStateBar';
		this.statusBarItem.command = 'vscodeBrowser.stateBarBrowser';
		this.statusBarItem.tooltip = 'please click to open browser';
		this.statusBarItem.show();
	}
	public async update() {
		if (!this.statusBarItem) {
			return;
		}
		window.showInformationMessage('Browser State Bar Updated');
	}
}

export let browserStateBar = new BrowserStateBar();
